<template>
  <div class="dashboard-container">
    <!-- <img :src="emptyGif" class="emptyGif"> -->
    <!-- <panel-group /> -->
    <div class="main">
      <!-- <h6>one more thing</h6> -->
      <!-- <ServerCharts /> -->
      <div id="card" v-html="rawHtml">
        <!-- All you need to put beautiful, interactive 3D content on your site: -->
      </div>
    </div>
  </div>
</template>

<script>
// import ServerCharts from '../components/server_charts'
// import PanelGroup from './components/PanelGroup'

export default {
  name: 'DashboardAdmin',
  components: {
    // ServerCharts
    // PanelGroup
  },
  data() {
    return {
      emptyGif: 'https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3',
      rawHtml: `
        <model-viewer
          id="viewer"
          src="https://cdn.glitch.com/36cb8393-65c6-408d-a538-055ada20431b/Astronaut.glb?1542147958948"
          ios-src="https://cdn.glitch.com/36cb8393-65c6-408d-a538-055ada20431b/Astronaut.usdz?v=1569545377878"
          poster="https://cdn.glitch.com/36cb8393-65c6-408d-a538-055ada20431b%2Fposter-astronaut.png?v=1599079951717"
          alt="A 3D model of an astronaut"
          shadow-intensity="1"
          camera-controls
          auto-rotate
          ar
        />
      `
    }
  }
}
</script>

<style>
#viewer {
  width: 70vw;
  height: 80vh;
}
</style>

<style lang="scss" scoped>
.emptyGif {
  display: block;
  width: 50vw;
  margin: 0 auto;
}
#card {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.dashboard-container {
  background-color: #e3e3e3;
  min-height: calc(100vh - 50px);
  padding: 50px 60px 0px;
  .pan-info-roles {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    display: block;
  }
  .info-container {
    position: relative;
    margin-left: 190px;
    height: 150px;
    line-height: 200px;
    .display_name {
      font-size: 48px;
      line-height: 48px;
      color: #212121;
      position: absolute;
      top: 25px;
    }
  }
  .main {
    height: 77%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}
</style>
